<div class="upload-wrap">
    <a href="javascript:void(0)" onclick="$(this).parent().parent().remove()" class="remove">x</a>
    <?= $this->Form->file($name, array(
            'style' => 'position:absolute; left:-9999px'
    )) ?>
    <a href="javascript:void(0)" onclick="addPhotoPicker(this)" class="add">+</a>
</div>

<script type="text/javascript">
function addPhotoPicker(a) {
    var uw = $(a).parent().clone(true);
    var ul = $(a).parent().parent().parent();
    
    var li = $('<li>');
    li.append(uw);
    ul.append(li);
    
    var a2 = uw.find('.add');
    a2
        .html('?')
        .removeClass('add')
        .addClass('pick')
        .removeAttr('onclick')
        .click(function(){
            $(this).siblings('input[type=file]').click();
        });
}
</script>